﻿namespace FFF.Test.Entity.FW
{
    using System;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using Abp.Domain.Entities;
    using Abp.AutoMapper;
    using FFF.Test.Entity.FW.View;
    using FFF.Test.Entity.Framework.Entity;

	/// <summary>
    /// 高级查询配置表
    /// </summary>
	[Table("FW_AdvanceSet")]
    [Display(Name = "高级查询配置表", Description = "高级查询配置表")]
    [AutoMapFrom(typeof(ViewFWAdvanceSet))] 
    public partial class FWAdvanceSetEntity : BaseEntity<Guid>
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Column("AdvanceSetGUID")]
        [Display(Name = "高级查询配置表主键", Description = "高级查询配置表主键")]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public override Guid Id { get; set; }

		/// <summary>
        /// 配置名称
        /// </summary>
		[Display(Name = "配置名称", Description = "配置名称")]
        [Column("AdvanceSetName")]
		[StringLength(128)]
        public string AdvanceSetName { get; set; }   

		/// <summary>
        /// 页面地址
        /// </summary>
		[Display(Name = "页面地址", Description = "页面地址")]
        [Column("AdvancePage")]
		[StringLength(128)]
        public string AdvancePage { get; set; }   

		/// <summary>
        /// 配置的Json串
        /// </summary>
		[Display(Name = "配置的Json串", Description = "配置的Json串")]
        [Column("AdvanceSetJson")]
		[StringLength(99999)]
        public string AdvanceSetJson { get; set; }   

		/// <summary>
        /// 用户GUID
        /// </summary>
		[Display(Name = "用户GUID", Description = "用户GUID")]
        [Column("UserGUID")]
        public Guid? UserGUID { get; set; }   

		/// <summary>
        /// 查询类型(1,高级查询;2,首页查询)
        /// </summary>
		[Display(Name = "查询类型(1,高级查询;2,首页查询)", Description = "查询类型(1,高级查询;2,首页查询)")]
        [Column("AdvanceSetType")]
        public FWAdvanceSetAdvanceSetTypeEnum AdvanceSetType { get; set; }   
    }

    /// <summary>
    /// 查询类型(1,高级查询;2,首页查询)枚举
    /// </summary>
    public enum FWAdvanceSetAdvanceSetTypeEnum
    {
        /// <summary>
        /// 没有值
        /// </summary>
        None = 0,

        /// <summary>
        /// 高级查询
        /// </summary>
        高级查询 = 1,

        /// <summary>
        /// 首页查询
        /// </summary>
        首页查询 = 2
    }
}
